﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StateDemo
{
    /// <summary>
    /// Client场景类太简单了，只要定义一个电梯的初始状态，然后调用相关方法，完全不用考虑状态的变化
    /// </summary>
    class Client
    {
        static void Main(string[] args)
        {
            Context context = new Context();
            context.LiftState = new ClosingState();
            context.Open();
            context.Close();
            
        }
    }
}
